package com.dong.aop.proxy;

import org.springframework.aop.framework.ProxyFactory;

/**
 * description
 *
 * @author Administrator 2021/09/10 11:23
 */
public class Main {

    public static void main(String[] args) {
        Pojo pojo = new SimplePojo();
        ProxyFactory proxyFactory = new ProxyFactory(pojo);
//        proxyFactory.addInterface(Pojo.class);
//        proxyFactory.addAdvice(new RetryAdvice());

        Pojo pojo1 = (Pojo) proxyFactory.getProxy();
        pojo1.foo();
    }
}
